package postgres

//func GetUpgradeDetail(ctx context.Context, sql string, out interface{}, values ...interface{}) {
//	var (
//		querySQL = `
//SELECT
//    upgrade_strategy.id as upgrade_strategy_id,
//    upgrade_strategy.firmware_ids as upgrade_strategy_firmware_ids,
//    firmware.id as firmware_id,
//    firmware.version as firmware_version,
//    firmware.file_path as firmware_filepath
//FROM
//    upgrade_strategy
//LEFT JOIN firmware ON firmware.id = ANY (upgrade_strategy.firmware_ids)
//WHERE upgrade_strategy.id = 3
//`
//	)
//	dbOta.WithContext(ctx).Exec(querySQL).Find(out)
//}
